package com.Shop.Center.dao;

import com.Shop.Center.entity.ItemOrder;
import com.Shop.Center.entity.MonthStatistical;
import com.Shop.Center.entity.YearStatistical;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface ItemOrderMapper extends BaseMapper<ItemOrder> {
    
    int specifiedQuery(Date startDate, Date endDate);

    List<YearStatistical> yearOrder();
    List<MonthStatistical> monthOrder();

    int insertOrder(String orderNo,Long userId,Double totalPrice,String extraInfo,String userAddress);
}